<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import="cl.falabella.cmr.business.Region"%>
<%@ page import="java.util.List"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Regiones Filtradas</title>
</head>
<body>
	<h1>Listado de Regiones Filtradas</h1>
	<h2>Que contienen "<%= request.getParameter("elPatron") %>"</h2>
	<table>
		<tr>
			<th>Nombre</th>
			<th>Capital</th>
			<th>Numeral</th>
		</tr>
		<%
			List<Region> regiones = (List<Region>) request.getAttribute("regiones");
			for (Region region : regiones) {
		%>
		<tr>
			<td><%= region.getNombre() %></td>
			<td><%= region.getCapital() %></td>
			<td><%= region.getNumeral() %></td>
		</tr>
		<%
			}
		%>
	</table>
</body>
</html>